/**
 *  @Author wanghongfu
 *  @Email 1583505981@qq.com
 *  @DateTime:  
 *  @Description: Demo.java
 */

public class Demo {

	public static void main(String[] args) {
		Context context=new Context();
		StartState startstate=new StartState();
		startstate.doAction(context);
		System.out.println(context.getState().toString());

		StopState  stopstate=new StopState();
		stopstate.doAction(context);
		System.out.println(context.getState().toString());
	}
}